import request from '@/utils/request.js'
const PATH = '/user/collect'

// 修改景点收藏状态
export const updateSightsCollectStatus = ({ id, status }) =>
  request.put(PATH + `/updateSightsCollectStatus/${id}/${status}`)

// 修改酒店收藏状态
export const updateHotelCollectStatus = ({ id, status }) =>
  request.put(PATH + `/updateHotelCollectStatus/${id}/${status}`)

// 查询用户景点收藏信息
export const getSightsCollectList = ({ page, pageSize, userId }) =>
  request.get(PATH + '/pageQuerySightsCollect', {
    params: {
      page,
      pageSize,
      userId
    }
  })

// 查询用户酒店收藏信息
export const getHotelCollectList = ({ page, pageSize, userId }) =>
  request.get(PATH + '/pageQueryHotelCollect', {
    params: {
      page,
      pageSize,
      userId
    }
  })
